package com.xiaomengkuan.product.entity.vo;

import com.xiaomengkuan.product.entity.pojo.Tag;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * @author Faraj Mujey
 * -- Creation Time: 2021-01-26 7:11 下午, File Encoding: utf8 --
 */
@Data
@ToString
@ApiModel("商品响应数据模型")
public class ProductResponseVo {
    @ApiModelProperty("id")
    private String id;
    @ApiModelProperty("商品名称")
    private String title;
    @ApiModelProperty("商品主图")
    private String img;
    @ApiModelProperty("喜欢的数量")
    private int like;
    @ApiModelProperty("收藏的数量")
    private int favourite;
    @ApiModelProperty("价格")
    private double price;
    @ApiModelProperty("排序")
    private int sort;
    @ApiModelProperty("简介")
    private String summary;
    @ApiModelProperty("该用户是否喜欢")
    private boolean isLiked;
    @ApiModelProperty("该用户是否收藏")
    private boolean isFavourited;
    @ApiModelProperty("商品的标签")
    private List<Tag> tags;
}
